package com.knowledge.graph.model.vo;

import ch.qos.logback.core.joran.action.NOPAction;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * @author jiwenlong
 * @version 1.0
 * @description: 状态码
 * @date 2023/11/5 16:33
 */
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum StatusCode {

    SUCCESS(1000, "请求处理成功"),

    FAIL_LOGIN(2001, "未登录"),

    FAIL_SAVE_VIDEO(2002, "视频保存失败"),

    FAIL_VIDEO_SIZE(2004, "视频大小超出20MB限制"),

    FAIL_ADD(2003, "添加失败"),

    FAIL_UPDATE(2004, "修改失败"),

    FAIL_DELETE(2005, "删除失败"),

    FAIL_SELECT(2006, "查询失败");

    private int code;

    private String message;

    StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
